package com.dingding.service;

import com.dingding.common.ServerResponse;
import com.dingding.pojo.Category;

import java.util.List;

/**
 * Created by 张柏桦 on 2017/8/23.
 */
public interface ICategoryService {

     ServerResponse addCategory(String categoryName, Integer parentId);

     ServerResponse updateCategoryName(Integer categoryId, String categoryName);

     ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);

     ServerResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
